<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_CSS显示模式</title>

</head>
    <style>
        div{
            width:100px;
            height:100px;
            border:5px solid red;
            display:block;
        }
        span{
            background-color:yellow;
            width:100px;
            height:100px;
            /*行内元素:无法设置宽高，横着排，大小由内容决定*/
            display:inline;
            display:block;
        }
        input,button{
            width:200px;
            height:200px;
            /*行内块元素:既能设置宽高，又能横着排*/
            display:inline-block;
        }
        .d2:hover{
            /*元素消失:会脱离文档流，释放元素原来占据页面布局空间*/
            display:none;
        }
    </style>
<body>
    <div class="d1">111</div>
    <div class="d2">222</div>
    <div class="d3">333</div>
    <hr>
    <span>123456789</span>
    <span>123456789</span>
    <span>123456789</span>
    <hr>
    <input type="text">
    <input type="text">
    <button>按钮</button>

</body>
</html>